package com.whl.sm.vo;

import com.whl.sm.model.system.OrgUserInfo;
import com.whl.sm.model.system.Role;
import lombok.Data;

import java.util.Date;

@Data
public class OrgUserInfoRoleVo {
    public OrgUserInfoRoleVo(OrgUserInfo orgUserInfo, Role role){
        if (orgUserInfo != null){
            this.userId = orgUserInfo.getUserId();
            this.userName = orgUserInfo.getUserName();
            this.gender = orgUserInfo.getGender();
            this.linkTel = orgUserInfo.getLinkTel();
            this.linkMail = orgUserInfo.getLinkMail();
        }

        if (role != null){
            this.roleId = role.getId();
            this.roleName = role.getRoleName();
        }
    }


    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 联系电话
     */
    private String linkTel;

    /**
     * 联系邮箱
     */
    private String linkMail;


    /**
     * 性别 0:female 1:male
     */
    private Integer gender;

    /**
     * 角色ID
     */
    private String roleId;

    /**
     * 角色名称
     */
    private String roleName;





}
